import {SET_HEIGHT, SET_WIDTH} from '../mutation-types';
const state = {
  screenHeight: 0,
  screenWidth: 0,
};

const mutations = {
  [SET_HEIGHT] (state, screenHeight) {
    state.screenHeight = screenHeight;
  },
  // 以下为测试数据
  [SET_WIDTH] (state, screenWidth) {
    state.screenWidth = screenWidth;
  },    
};

export default {
  state,
  mutations,
};
